<div class="zs-body" data-ng-init="formInit('gzclwx', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzclwx');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">车辆维修</a>
        </div>
        <div class="option">
        	<input type="button" class="zs-btn orange" value="结束维修" 
                ng-click="ghwxcl('gzclwx', gzclwx.sRows[0]);"/>
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzclwx') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzclwx', gzclwx.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzclwx')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzclwx.queryObject['id']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="车辆型号" ng-model="gzclwx.queryObject['clxh:like']"/>
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="车牌号" ng-model="gzclwx.queryObject['cph:like']"/>
                </span>
				<!--<span class="search-warpper">
                    <ag-Datebox id='qi_dwxsj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzclwx.queryObject['dwxsj']" >
				   	</ag-Datebox>
                </span>-->
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="维修原因" ng-model="gzclwx.queryObject['swxyy']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="维修价格" ng-model="gzclwx.queryObject['swxjg']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="维修地点" ng-model="gzclwx.queryObject['swxdd']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="负责人" ng-model="gzclwx.queryObject['sfzr:like']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="联系方式" ng-model="gzclwx.queryObject['slxff']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="维修费用" ng-model="gzclwx.queryObject['swxfy']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="电子发票" ng-model="gzclwx.queryObject['sdzfp']"/>
                </span>-->
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzclwx')"/>
                <!--<a class="ope-1" ng-click="loadData('gzclwx')"></a>
                <a class="ope-2"></a>-->
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzclwx','allCheckbox');" />
                                    </th>
								<!--	<th>唯一编号</th>-->
									<th>车辆型号</th>
									<th>车牌号</th>
									<th>维修时间</th>
									<th>维修原因</th>
									<th>维修价格</th>
									<th>维修地点</th>
									<th>负责人</th>
									<th>联系方式</th>
									<th>维修费用</th>
									<th>维修状态</th>
									<!--<th>电子发票</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzclwx.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzclwx',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  唯一编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  车辆信息(与车辆档案挂接) -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.clxh"></label>
                                        </a>
                                   </td>
                                   
                                   <td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.cph"></label>
                                        </a>
                                   </td>
									<!--  维修时间 -->
								   <td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.dwxsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  维修原因 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.swxyy"></label>
                                        </a>
                                   </td>
									<!--  维修价格 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.swxjg"></label>
                                        </a>
                                   </td>
									<!--  维修地点 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.swxdd"></label>
                                        </a>
                                   </td>
									<!--  负责人 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.sfzrmc"></label>
                                        </a>
                                   </td>
									<!--  联系方式 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.slxff"></label>
                                        </a>
                                   </td>
									<!--  维修费用 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.swxfy"></label>
                                        </a>
                                   </td>
                                   <!--  维修费用 -->
            						<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.wxztName"></label>
                                        </a>
                                   </td>
									<!--  电子发票 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclwx',r) && openWindow('edit');">
                                            <label ng-bind="r.sdzfp"></label>
                                        </a>
                                   </td>-->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzclwx'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="车辆维修编辑" width='800px' height='500px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>车辆型号</td>
                                <td class="left" width="30%">
                                	<input readonly="true" type="text" ng-model="gzclwx.editRow.clxh" class="zs-input" />
                                	
                                	
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="车辆型号" required 
                                		ng-model="gzclwx.editRow.clxh"
                                		name="form_clxh"/></span>
                                </td>
                                
                                 <td class="text" width="20%"><font color="red">*</font>车牌号</td>
                                <td class="left" width="30%">
                                	<input readonly="true" type="text" ng-model="gzclwx.editRow.cph" class="zs-input" />
                                		<span ng-show="false"><input hide-novalidate="true" 
                                		alias="车牌号" required 
                                		ng-model="gzclwx.editRow.cph"
                                		name="form_cph"/></span>
                                </td>
                               	
                            </tr>
          					<tr>
                                <td class="left" width="50%" colspan="4" style="padding-left:100px">
                                	<input type="button" name="ok" value="选择车辆" class="zs-btn c-green" 
                                        ng-click="openWindow('chooseClda');" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>维修原因</td>
                                <td class="left" width="30%" colspan="3">
                                	<textarea type="text" ng-model="gzclwx.editRow.swxyy" class="zs-input" 
                                		style="width:95%;height: 180px;"></textarea>
                                <span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修原因" required 
                                		ng-model="gzclwx.editRow.swxyy"
                                		name="form_swxyy"/></span>
                                	<!--<input type="text" ng-model="gzclwx.editRow.swxyy" class="zs-input" />-->
                                </td>
                            </tr>
          					<tr>    
                             	<td class="text" width="20%"><font color="red">*</font>维修时间</td>
                                <td class="left" width="30%"><span>
                                	<ag-Datebox id='fi_dwxsj' showcurday='gzclwx.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:226px;height: 28px"
		                        		ng-model="gzclwx.editRow.dwxsj" >
							   		</ag-Datebox></span>
							   		
							   		 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修时间" required 
                                		ng-model="gzclwx.editRow.dwxsj"
                                		name="form_dwxsj"/></span>
                                </td>
                                
                                <td class="text" width="20%" ng-show="gzclwx.editRow.wxztName!=null">维修状态</td>
                                <td class="left" width="30%" ng-show="gzclwx.editRow.wxztName!=null">
                                	<label ng-bind="gzclwx.editRow.wxztName"></label>
                                </td>
                            </tr>
                            
                            <tr>
                               <td class="text" width="20%"><font color="red">*</font>维修价格</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclwx.editRow.swxjg" class="zs-input" />
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修价格" required 
                                		ng-model="gzclwx.editRow.swxjg"
                                		name="form_swxjg"/></span>
                                </td>
                                
                                  <td class="text" width="20%"><font color="red">*</font>维修地点</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclwx.editRow.swxdd" class="zs-input" />
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修地点" required 
                                		ng-model="gzclwx.editRow.swxdd"
                                		name="form_swxdd"/></span>
                                </td>
                            </tr>
                            
          					<tr>
                              
                           <td class="text" width="20%"><font color="red">*</font>维修费用</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclwx.editRow.swxfy" class="zs-input" />
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修费用" required 
                                		ng-model="gzclwx.editRow.swxfy"
                                		name="form_swxfy"/></span>
                                </td>
                                
                                <td class="text" width="20%"><font color="red">*</font>负责人</td>
                                <td class="left" width="30%"><span>
                                	<ag-Combotree class="zs-input" style="width:226px;height: 28px" 
										fn='gzclwxfzr'
										para="{ uDictionary:false,
												pidField:'userid',
												checkbox:false,
												valueField:'userid',
												textField:'userName',
												onlyLeafCheck:true,
												bindFn:'gzclwx',
												editable:true,
												keyField:'userid',
												queryFields:'userid,userName,departmentId',
												pageSize:1200,
												maxNavs:6,
												queryObject:{},
												ssn:'vuserinfo'}"
										ng-model="gzclwx.editRow.sfzr"
										ng-change="onchangeClwxFzr();"
										text-Value="gzclwx.editRow.sfzrmc"></ag-Combotree></span>
										
										 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="负责人" required 
                                		ng-model="gzclwx.editRow.sfzr"
                                		name="form_sfzr"/></span>
                                	<!--<input type="text" ng-model="gzclwx.editRow.sfzr" class="zs-input" />-->
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclwx.editRow.slxff" class="zs-input" />
                                	
                                		 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="联系方式" required 
                                		ng-model="gzclwx.editRow.slxff"
                                		name="form_slxff"/></span>
                                </td>
                            
                            
                             <td class="text" width="20%"><font color="red">*</font>电子发票</td>
                                <td class="left" width="30%"><span>
                                	<ag-Upload ng-model="gzclwx.editRow.sdzfp" 
				                        para="{}"></ag-Upload></span>
				                        
				                         <span ng-show="false"><input hide-novalidate="true" 
                                		alias="电子发票" required 
                                		ng-model="gzclwx.editRow.sdzfp"
                                		name="form_sdzfp"/></span>
				                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzclwx', gzclwx.editRow, saveClwxSuccess)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
        <div ag-Window id="chooseClda" title="选择车辆" width='560px' height='360px'>
		    <div class="zs-form-tab ibox"
		    	data-ng-init="formInit('gzclda', {
			        keyField:'id',
			        randomFields:['id'],
			        orderObject:{id:0},
			        queryObject:{'clzt':'clzt_wsy'}
			    }) && loadData('gzclda');setConHei();">
		        <div class="zs-nice-tab idTabs">
					<div class="tool item" style="margin-left:6px;">
		            	<span class="search-warpper">
		                    <i class="icon"></i>
		                    <input type="text" class="zs-input" placeholder="车辆型号" ng-model="gzclda.queryObject['sclxh']"/>
		                </span>
		            	<span class="search-warpper">
		                    <i class="icon"></i>
		                    <input type="text" class="zs-input" placeholder="车牌号" ng-model="gzclda.queryObject['scph']"/>
		                </span>
		            </div>
		            <div class="operation item" style="margin-top:7px;">
		            	<input type="button" class="zs-btn orange" value="查询" 
		            		ng-click="loadData('gzclda')"/>
		                <!--<a class="ope-1" ng-click="loadData('gzclda')"></a>
		                <a class="ope-2"></a>-->
		            </div>
		            <div class="switch">
		                
		            </div>
		        </div>
		        <div class="date-container">
		            <div id="zpgwd">
		                <div class="zs-data-table">
		                    <div class="container">
		                        <table>
		                            <thead>
		                                <tr>
		                                	<th></th>
											<th>车辆型号</th>
											<th>座次</th>
											<th>车牌号</th>
		                                </tr>
		                            </thead>
		                            <tbody>
		                                <tr ng-repeat="r in gzclda.datas">
		                                	<td>
		                                        <input type="checkbox"
		                                            ng-click="selectRow('gzclda',r,true);"
		                                            ng-model="r.selected" />
		                                    </td>
		            						<td>
		                                        <a >
		                                            <label ng-bind="r.sclxh"></label>
		                                        </a>
		                                   </td>
		            						<td>
		                                        <a >
		                                            <label ng-bind="r.sclxxName"></label>
		                                        </a>
		                                   </td>
		            						<td>
		                                        <a >
		                                            <label ng-bind="r.scph"></label>
		                                        </a>
		                                   </td>
		                                </tr>
		                            </tbody>
		                            <tfoot>
			                            <tr>
			                                <td colspan="4">
			                                    <input type="button" class="zs-btn orange" value="选择" 
                									ng-click="chooseClda(gzclwx.editRow,gzclda.sRows[0],'chooseClda');"/>
			                                </td>
			                            </tr>
			                        </tfoot>
		                        </table>
		                    </div>
		                </div>
		                <div class="zs-pagination-box">
		                    <ag-Page fn='gzclda'></ag-Page>
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
    </div>
</div>